from group_new import Group
from OCC.Display.SimpleGui import init_display
import os
from OCC.Extend.DataExchange import write_stl_file
# display, start_display, add_menu, add_function_to_menu = init_display('wx')
# first, create the shape

# set the directory where to output the
json="Clamp01"
save_dir=stl_output_dir = os.path.abspath(os.path.join(".","data"))
filename="1.stl"


def to_stl(json_name,save_dir,filename):
    G=Group(json_name)
    G.to_stl(save_dir,filename)

to_stl(json,save_dir,filename)